<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        class Stack {
            constructor() {
                    this.item = [];
                }
                //push()
            push(element) {
                    this.item.push(element);
                }
                //pop()
            pop() {
                    return this.item.pop();
                }
                //peek()
            peek() {
                    return this.item[this.size() - 1];
                }
                //size()
            size() {
                return this.item.length;
            }
            isEmpty() {
                return this.size() === 0;
            }
            toString() {
                return this.item.toString();
            }
        }
        const stack = new Stack();
        stack.push("cn");
        stack.push("us");
        stack.push("jp");
        // console.log(stack.toString());
        // console.log(stack.pop());
        // console.log(stack.toString());
        // console.log(stack.peek());
        // console.log(stack.size());
        // console.log(stack.isEmpty());

        function decimal2Binary(decNumber) {
            const stack = new Stack();
            let rem;
            let number = decNumber;
            let binaryString = "";
            while (number > 0) {
                rem = Math.floor(number % 2);
                number = Math.floor(number / 2);
                stack.push(rem);
            }
            while (!stack.isEmpty()) {
                // console.log(stack.pop());
                binaryString += stack.pop().toString();
            }
            return binaryString;

        }
        //         let number = 11;
        //         console.log(decimal2Binary(number));
        var fs = require('fs');
        var buf = '';

        process.stdin.on('readable', function() {
            var chunk = process.stdin.read();
            if (chunk) buf += chunk.toString();
        });

        process.stdin.on('end', function() {
            buf.split('\n').forEach(function(line) {
                var tokens = line.split(' ').map(function(x) {
                    return parseInt(x);
                });
                //     if (tokens.length != 2) return;
                //     console.log(tokens.reduce(function(a, b) { return a + b; }));
                //       console.log(tokens[0])
                let number = tokens[0]
                console.log(decimal2Binary(number));

            });
        });
    </script>
</body>

</html>